export default {
    install(Vue, options) {

        // 用户档案--------------------------------------------------------------------------------------
        Vue.prototype.BaseUserLoginListGet = function (data) {
            return this.$axios.get('user/login/', data)
        }
        // 用户登录
        Vue.prototype.BaseUserLoginListPost = function (data) {
            return this.$axios.post('user/login/', data)
        }

        // 删除单个
        Vue.prototype.BaseUserPkDelete = function (id) {
            return this.$axios.delete('user/curd/' + id + '/')
        }

        // 报工上传
        Vue.prototype.BaseBaoGongUploadExcelPost = function (data) {
            return this.$axios.post('basic/baogonguploadexcel/', data)
        }



        // 入库记录明细表查询
        Vue.prototype.BaseRuKuListGet = function (params) {
            return this.$axios.get('basic/rukulist/', {
                params: params
            })
        }

        // 查询固定资产卡片
        Vue.prototype.BaseFixedAssetsListGet = function (params) {
            return this.$axios.get('fixedassets/search/', {
                params: params
            })
        }

        // 查询打印机设备
        Vue.prototype.BaseprintDeviceGet = function (params) {
            return this.$axios.get('basic/printdevice/', {
                params: params
            })
        }

        // 新增打印机设备
        Vue.prototype.BaseprintDevicePost = function (data) {
            return this.$axios.post('basic/printdevice/', data)
        }


        // 删除打印机设备
        Vue.prototype.BaseprintDevicePut = function (data) {
            return this.$axios.put('basic/printdevice/', data)
        }

        // 查询盘点单号选择
        Vue.prototype.BaseCartCheckSelectGet = function (params) {
            return this.$axios.get('fixedassets/cartcheckselect/', {
                params: params
            })
        }

        // 查询附加卡片
        Vue.prototype.BaseCartFuJiaGet = function (params) {
            return this.$axios.get('fixedassets/cartfujia/', {
                params: params
            })
        }
        // 查询附加卡片
        Vue.prototype.BaseCartFuJiaDelete = function (params) {
            return this.$axios.delete('fixedassets/cartfujia/', {
                params: params
            })
        }

        // 查询打印模板查询
        Vue.prototype.PrintTemplateGet = function (params) {
            return this.$axios.get('basic/printtemplate/', {
                params: params
            })
        }

        // 克隆打印模板查询
        Vue.prototype.PrintTemplatePost = function (data) {
            return this.$axios.post('basic/printtemplate/', data)
        }

        // 修改打印模板查询
        Vue.prototype.PrintTemplatePut = function (data) {
            return this.$axios.put('basic/printtemplate/', data)
        }


        // 删除打印模板查询
        Vue.prototype.PrintTemplatDelete = function (params) {
            return this.$axios.delete('basic/printtemplate/', {
                params: params
            })
        }

        // 查询盘点单
        Vue.prototype.BaseCheckDetailListGet = function (params) {
            return this.$axios.get('fixedassets/checkdetailList/', {
                params: params
            })
        }

    }
}